<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:71:"C:\wwwroot\vipwaimai.com\web/../application/admin\view\sms\setting.html";i:1493023508;s:73:"C:\wwwroot\vipwaimai.com\web/../application/admin\view\public\header.html";i:1503189484;s:73:"C:\wwwroot\vipwaimai.com\web/../application/admin\view\public\footer.html";i:1512624954;}*/ ?>
﻿<!DOCTYPE html>
<html lang="zh-cn">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title><?php echo config('sitename'); ?>-<?php echo lang('label')['Login_title']; ?></title>
		<link rel="stylesheet" type="text/css" href="__ROOT__/static/public/css/pintuer.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/static/admin/css/admin.css" />
		<script type="text/javascript" src="__ROOT__/static/public/js/jquery.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/js/pintuer.js"></script>
		<script type="text/javascript" src="__ROOT__/static/admin/js/admin.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/layer/layer.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/laydate/laydate.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/laytpl/laytpl.js"></script>
	</head>

	<body>
	<style>
		html { overflow-x:hidden; }
	</style>
				<form method="post" class="form-x" action="?tab=upload">
					<div class="form-group">
						<div class="label">
						</div>
						<div class="field">
							<div class="alert alert-yellow input-auto" size="100"><?php echo lang('sms')['tip']; ?><a target="_blank" href="https://www.alidayu.com/"><?php echo lang('currency')['click_go']; ?></a></div>
						</div>
					</div>
					<div class="form-group">
						<div class="label">
							<label for="appkey">appkey</label>
						</div>
						<div class="field">
							<input type="text" class="input input-auto" id="appkey" name="appkey" value="<?php echo $data['appkey']; ?>" size="80" placeholder="<?php echo lang('currency')['required']; ?>" data-validate="required:<?php echo lang('currency')['required']; ?>" />
						</div>
					</div>
					<div class="form-group">
						<div class="label">
							<label for="appsecret">appsecret</label>
						</div>
						<div class="field">
							<input type="text" class="input input-auto" id="appsecret" name="appsecret" value="<?php echo $data['appsecret']; ?>" size="80" placeholder="<?php echo lang('currency')['required']; ?>" data-validate="required:<?php echo lang('currency')['required']; ?>" />
						</div>
					</div>
					<div class="form-group">
						<div class="label">
							<label for="sign">sign</label>
						</div>
						<div class="field">
							<input type="text" class="input input-auto" id="sign" name="sign" value="<?php echo $data['sign']; ?>" size="80" placeholder="<?php echo lang('currency')['required']; ?>" data-validate="required:<?php echo lang('currency')['required']; ?>" />
						</div>
					</div>
					<div class="form-group">
						<div class="label">
							<label for="template"><?php echo lang('sms')['template']; ?></label>
						</div>
						<div class="field">
							<input type="text" class="input input-auto" id="template" name="template" value="<?php echo $data['template']; ?>" size="80" placeholder="<?php echo lang('currency')['required']; ?>" data-validate="required:<?php echo lang('currency')['required']; ?>" />
						</div>
					</div>
					<div class="form-button">
						<button class="button bg-main" type="submit"><?php echo lang('form')['submit']; ?></button>
						<button class="button bg-green testsend" type="button">Test Send</button>
					</div>
					<br/>
					<div id="testsend" class="form-group hidden">
						<div class="label">
							<?php echo lang('label')['status']; ?>：
						</div>
						<div class="field">
							<div id="sms_return" class="alert alert-yellow input-auto" size="100"></div>
						</div>
					</div>
				</form>
			<script>
				layer.config({
					extend: 'extend/layer.ext.js'
				});
				$('.testsend').click(function(){
					var index = layer.prompt({title:'<?php echo lang('label')['phone']; ?>'},function(val){
						$.getJSON("__ROOT__/admin/sms/testsend.html",{phone:val},function(data){
							$("#testsend").removeClass('hidden');
							$("#sms_return").html(data);
							layer.close(index);
						});
					});
				});
			</script>
<p class="text-center text-gray" style="margin-top:10px;"><a class="text-gray" target="_blank" href="http://www.wm0530.com">完美外卖系统 Power by 网络工厂</a></p>
</body>
<script>
$('.upload').on('click',function (){
		var id = $(this).attr('data-id');
		 upload(id);
	}
);
function upload(id){
	layer.open({
		type:2,
		title:false,
		area: ['70%', '90%'],
		offset: '5%',
		content: "<?php echo url('/admin/material'); ?>?id="+id
	});
}
</script>
</html>